AESizeOfParam
AESizeOfParam Get size and descriptor type of Apple Event parameter
#include <AppleEvents.h> Apple Event Manager
OSErr AESizeOfParam( theAppleEvent, theAEKeyword, typeCode,
dataSize );
AppleEvent * theAppleEvent ; Apple event containing the parameter
AEKeyword theAEkeyword ; Apple Event keyword for parameter
DescType * typeCode ; descriptor type of parameter
Size * dataSize ; size of data in parameter
returns Error Code; 0 = no error
The AESizeOfParam function returns the size and descriptor type of an
Apple event parameter.
The parameter theAppleEvent is the Apple event containing the parameter.
The parameter theAEKeyword is the keyword that specifies the desired
parameter.
The function returns the descriptor type of the parameter in the typeCode
parameter.
The function returns the length, in bytes, of the data contained in the desired
parameter in the dataSize parameter.
Result codes
noErr (0) No error
errAEDescNotFound (-1701) Descriptor record was not found
errAENotAEDesc (-1704) Not a valid descriptor record
errAEReplyNotArrived (-1718) Reply has not yet arrived